<!DOCTYPE html>
<html>
	<!--<head>
  <meta charset="utf-8">
  <title>layuiAdmin 管理员 iframe 框</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
</head>-->
	{include file="public/header" /}
	 <script type="text/javascript" src="__CSS__/Ueditor/ueditor.config.js"></script>
		<script type="text/javascript" src="__CSS__/Ueditor/ueditor.all.min.js"></script>
		<script type="text/javascript" src="__CSS__/Ueditor/lang/zh-cn/zh-cn.js"></script>
		<script type="text/javascript">
			UE.getEditor('songsong', { //content为要编辑的textarea的id
				initialFrameWidth: 1300, //初始化宽度
				initialFrameHeight: 500, //初始化高度
			});
		</script>
	<body>
			<form class="layui-form" action="" lay-filter="component-form-group" style="overflow:hidden;padding:0 40px 60px 0;">
		<div class="layui-form" lay-filter="layuiadmin-form-admin" id="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
			<div class="layui-form-item">
				<label class="layui-form-label">标题</label>
				<div class="layui-input-inline">
					<input type="text" name="Title" lay-verify="required" placeholder="" autocomplete="off" class="layui-input" value="{$data1.Title}">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">文章内容</label>
				<div class="layui-input-inline">
				<script type="text/javascript" id="songsong" name="Contents">{$data1.Contents}</script>
				</div>
			</div>
			
			<input type="hidden" name="ID" lay-verify="required" placeholder="隐藏域 编辑用户ID" autocomplete="off" class="layui-input" value="{$data1.ID}">
			<div class="layui-form-item layui-hide">
				<button class="layui-btn" lay-submit lay-filter="LAY-user-back-submit" id="LAY-user-back-submit">提交</button>
			</div>
		</div>
		</div>
		<!--<script src="../../../layuiadmin/layui/layui.js"></script>-->
		{include file="public/footer" /}
		<script>
			layui.use(['form'], function() {
				var $ = layui.$,
					form = layui.form;
			})
			var ue = UE.getEditor('songsong');
			form.on('submit(LAY-user-back-submit)', function(data){
			    parent.layer.alert(JSON.stringify(data.field), {
			        title: '最终的提交信息'
			    })
			 
			});
		</script>
	</body>

</html>